home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d19 / usbdor42.arc / SEND.BAT < prev    next >
DOS Batch File  |  1991-07-06  |  1KB  |  51 lines

  1. echo off
  2. rem ------------------------------------------------------------------------
  3. rem USBBSDOR passes these parameters to SEND.BAT
  4. rem %1 = baud rate
  5. rem %2 = com port
  6. rem %3 = file name to send
  7. rem %4 = protocol choice (letter)
  8. rem ------------------------------------------------------------------------
  9. rem  If using non-standard COM ports (COM ports other than 1 or 2), trap %2
  10. rem  to bring up an alternate SEND.BAT which contains this file PLUS the
  11. rem  non-standard COM info which DSZ will need. For example:
  12. rem  if "%2" == "3" SEND3.BAT %1 %2 %3 %4
  13. rem  if "%2" == "4" SEND4.BAT %1 %2 %3 %4
  14. rem  and replace: port %2  (below) with: portx ADDR,IRQ (where ADDR and IRQ
  15. rem  equal each node's non-standard COM port's Address and IRQ).
  16. rem ------------------------------------------------------------------------
  17.  
  18. if "%4" == "X" goto :Xmodem
  19. if "%4" == "C" goto :Xmodem
  20. if "%4" == "O" goto :1Kxmodem
  21. if "%4" == "F" goto :1KxmodemG
  22. if "%4" == "Y" goto :Ymodem
  23. if "%4" == "G" goto :YmodemG
  24. if "%4" == "Z" goto :Zmodem
  25. goto :end
  26.  
  27. :Xmodem
  28. DSZ port %2 pB4096 sx %3
  29. goto :end
  30.  
  31. :1Kxmodem
  32. DSZ port %2 pB4096 sx -k %3
  33. goto :end
  34.  
  35. :1KxmodemG
  36. DSZ port %2 pB4096 sx -k -g %3
  37. goto :end
  38.  
  39. :Ymodem
  40. DSZ port %2 pB4096 sb -k %3
  41. goto :end
  42.  
  43. :YmodemG
  44. DSZ port %2 pB4096 sb -k %3
  45. goto :end
  46.  
  47. :Zmodem
  48. DSZ port %2 pB4096 sz -m %3
  49.  
  50. :end
  51.